//
//  aishopApp.swift
//  aishop
//
//  Created by tuguowei on 2025/10/15.
//

import SwiftUI

@main
struct aishopApp: App {
    let persistenceController = PersistenceController.shared

    var body: some Scene {
        WindowGroup {
            ContentView()
                .environment(\.managedObjectContext, persistenceController.container.viewContext)
                .task {
                    // App启动时加载主题配置
                    await ThemeHelper.shared.loadThemeConfig()
                }
        }
    }
}
